(global.webpackJsonp = global.webpackJsonp || []).push([ [ "punchcard/rank" ], {
    2964: function(t, e, n) {
        (function(t) {
            Object.defineProperty(e, "__esModule", {
                value: !0
            }), e.default = void 0;
            var i = n("26cb"), r = n("bc33");
            function a(t, e) {
                var n = Object.keys(t);
                if (Object.getOwnPropertySymbols) {
                    var i = Object.getOwnPropertySymbols(t);
                    e && (i = i.filter(function(e) {
                        return Object.getOwnPropertyDescriptor(t, e).enumerable;
                    })), n.push.apply(n, i);
                }
                return n;
            }
            function c(t, e, n) {
                return e in t ? Object.defineProperty(t, e, {
                    value: n,
                    enumerable: !0,
                    configurable: !0,
                    writable: !0
                }) : t[e] = n, t;
            }
            n("db8f");
            var o = {
                computed: function(t) {
                    for (var e = 1; e < arguments.length; e++) {
                        var n = null != arguments[e] ? arguments[e] : {};
                        e % 2 ? a(Object(n), !0).forEach(function(e) {
                            c(t, e, n[e]);
                        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : a(Object(n)).forEach(function(e) {
                            Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e));
                        });
                    }
                    return t;
                }({}, (0, i.mapGetters)([ "mainColor", "configs" ])),
                data: function() {
                    return {
                        rank_fenlielist: [ "总榜", "本周", "上周", "今日", "昨日" ],
                        click_index: 0,
                        punchcard_id: "",
                        page: 1,
                        pagesize: 10,
                        ranktype: 1,
                        userinfo: {},
                        ranklist: [],
                        total: "",
                        loadingOk: !1,
                        main_height: 0,
                        isRequest: !1
                    };
                },
                created: function() {},
                methods: {
                    click_item: function(t) {
                        this.click_index = t, this.ranktype = t + 1, this.ranklist = [], this.total = 0, 
                        this.page = 1, this.getrankdetail();
                    },
                    getrankdetail: function() {
                        var t = this;
                        this.loadingOk = !1, this.isRequest = !1;
                        var e = {
                            punchcard_id: this.punchcard_id,
                            page: this.page,
                            pagesize: this.pagesize,
                            type: this.ranktype
                        };
                        (0, r.punchcardRanking)(e).then(function(e) {
                            for (var n in t.userinfo = e.info, e.list) t.ranklist.push(e.list[n]);
                            t.total = e.total, t.loadingOk = !0, t.isRequest = 0 == e.total;
                        }).catch(function(t) {
                            return console.log(t);
                        });
                    }
                },
                onLoad: function(e) {
                    var n = this;
                    n.punchcard_id = e.puchcardId, n.getrankdetail(), t.getSystemInfo({
                        success: function(t) {
                            n.main_height = t.windowHeight;
                        }
                    });
                },
                onReachBottom: function() {
                    this.page = this.page + 1, this.getrankdetail();
                },
                beforeCreate: function() {}
            };
            e.default = o;
        }).call(this, n("543d").default);
    },
    "72af": function(t, e, n) {},
    bf25: function(t, e, n) {
        n.r(e);
        var i = n("d74e"), r = n("c95e");
        for (var a in r) "default" !== a && function(t) {
            n.d(e, t, function() {
                return r[t];
            });
        }(a);
        n("d7ce");
        var c = n("f0c5"), o = Object(c.a)(r.default, i.b, i.c, !1, null, "231f3e12", null, !1, i.a, void 0);
        e.default = o.exports;
    },
    c95e: function(t, e, n) {
        n.r(e);
        var i = n("2964"), r = n.n(i);
        for (var a in i) "default" !== a && function(t) {
            n.d(e, t, function() {
                return i[t];
            });
        }(a);
        e.default = r.a;
    },
    d74e: function(t, e, n) {
        n.d(e, "b", function() {
            return i;
        }), n.d(e, "c", function() {
            return r;
        }), n.d(e, "a", function() {});
        var i = function() {
            this.$createElement;
            this._self._c;
        }, r = [];
    },
    d7ce: function(t, e, n) {
        var i = n("72af");
        n.n(i).a;
    },
    fca8: function(t, e, n) {
        (function(t) {
            n("1067"), i(n("66fd"));
            var e = i(n("bf25"));
            function i(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = n, t(e.default);
        }).call(this, n("543d").createPage);
    }
}, [ [ "fca8", "common/runtime", "common/vendor" ] ] ]);